<?php

namespace app\modules\sysConfig\models;

use Yii;

/**
 * This is the model class for table "rah_smstemplate".
 *
 * @property integer $smstempltpk
 * @property string $type
 * @property string $content
 * @property string $createtime
 * @property string $createuser
 */
class Smstemplate extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'rah_smstemplate';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [

//            [['createtime'],'required'],
            [['type','content'],'required'],
//            [['content'],'required'],
            [['createuser'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'smstempltpk' => '模板ID',
            'title' => '短信标题',
            'type' => '短信类型',
            'content' => '内容',
            'createtime' => '创建时间',
            'createuser' => '创建人',
        ];
    }
}
